luci-app-openvpn: add tls_crypt_v2 option for openvpn 2.5
authorJerome Guidon <[email protected]>
Sun, 10 Oct 2021 12:41:10 +0000 (14:41 +0200)
committerJerome Guidon <[email protected]>
Thu, 14 Oct 2021 13:31:00 +0000 (15:31 +0200)
So far tls_crypt_v2 is working on openwrt, but the option is missing in
the gui. This patch adds the missing option.

Signed-off-by: Jerome Guidon <[email protected]>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua

index 51fe606336a43cae7879abd351665b97702e4d9c..c8a83d21f7683554a54c1dd961539569e8eda182 100644 (file)
@@ -750,6 +750,10 @@ local knownParams = {
                        "tls_crypt",
                        "/etc/openvpn/tlscrypt.key",
                        translate("Encrypt and authenticate all control channel packets with the key") },
+               { Value,
+                       "tls_crypt_v2",
+                       "/etc/openvpn/servertlscryptv2.key",
+                       translate("Encrypt and authenticate all control channel packets with the key, version 2.") },
        --      { Value,
        --              "askpass",
        --              "[file]",